home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / Includes / PMMemory.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-18  |  1.1 KB  |  41 lines  |  [TEXT/CWIE]

  1. /*
  2.  *--- PageMakerMemory.h ----------------------------------------------------
  3.  *    Copyright (C) 1988-96 Adobe Systems Inc.  All rights reserved.
  4.  *
  5.  *    This file contains the PageMaker memory manager interface for both the
  6.  *    Mac OS and Windows 95 environments.  These are wrapper functions that
  7.  *  you can use in your PageMaker plug-in source code to provide easy
  8.  *    cross-platform support for callbacks.
  9.  *
  10.  * $Revision:   1.1  $
  11.  *
  12.  *
  13.  *--------------------------------------------------------------------------
  14.  */
  15. #ifndef __PageMakerMemory__
  16. #define __PageMakerMemory__
  17.  
  18. #include <stdlib.h>            // For calloc() & free() prototypes
  19. #include "PMTypes.h"
  20.  
  21. #ifdef __cplusplus            // All function prototypes are "C" based
  22.     extern "C" {
  23. #endif
  24.  
  25. // These are for handle based memory allocation
  26. PMHandle    MMAlloc(size_t sz);
  27. void         MMFree(PMHandle h);
  28. void *        MMLock(PMHandle h);
  29. void        MMUnlock(PMHandle h);
  30. PMBool        MMIsLocked(PMHandle h);
  31. PMErr        MMResizeHandle(PMHandle * h, size_t sz);
  32.  
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36.  
  37. #endif    // __PageMakerMemory__
  38.  
  39. // end of PageMakerMemory.h
  40.  
  41.